package thin4ca

import scala.collection.mutable.Map

object Main01 extends Application {
  
  val repo = new EntityRepository
  val domain = new Domain(repo)
  val tf = new TemplateFactory("acceptance/01-entity/");

  new TemplateAnalyzer(domain).runOn(tf)
   
  domain.add("01", new Entity("book", Map("title"->"It Works!", "ISBN" -> "12345")));
  
  val rh = new RequestHandler(tf, domain);
  
  val res = rh.handleRequest("book.html", "01");
  println( res )
}
